package com.cimc.service.ws;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;


/**
 * restful风格
 * @author zting
 *
 */
@Path(value = "/sample")
public interface Test {

	
	@GET
	@Path("/query/{param}")
	@Produces(MediaType.APPLICATION_JSON)
	public String testQuery(@PathParam("employeeCode")String employeeCode) ;
	
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public String test();
	
	@POST
	@Path("/postData")
    @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
	public String testManyParam(String name);
}
